package com.lucene.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhangzhen on 22/09/2017.
 */

@RequestMapping("/test")
@RestController
public class TestController {

    @RequestMapping(value = "/",method = RequestMethod.GET,produces = {MediaType.APPLICATION_JSON_VALUE})
    public String helloSpringBoot(){
        return "Hello SpringBoot!";
    }
}
